package com.briup.estore.common.service;

import com.briup.estore.common.bean.Shop;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * @author adam
 * @date 2022/10/13
 */
public interface IShopService {
    long countShop();

    Page<Shop> findShops(String shopName, int pageNum, int pageSize) throws Exception;

    List<Shop> findAllShops();

    List<Shop> findDiscount();

    List<Shop> recommendShop(Long id);

    Shop findShopById(Long shopId);

    List<Shop> findByCategory(Long categoryId);

    List<Shop> searchShop(String shopName);

    void save(Shop shop);

    void updateShopStatus(Long id);
}
